Skip to content

Conversation

@brandon-pereira
Copy link
Member

  1. Ensures that multiple scrollbars are not shown for nested panels (click row -> surrounding context -> repeat a few times)
scrollbars
  1. In the same state as above, closing the panel (clicking outside) then clicking another row caused the subpanel to re-open, this isn't ideal (should open to root drawer)
  2. fix issue with drawers where you can scroll, then open a nested drawer, the nested drawer would appear incorrectly
Screenshot 2026-01-09 at 5 10 29 PM

Fixes HDX-3171

1. Ensures that multiple scrollbars are not shown for nested panels (click row -> surrounding context -> repeat a few times)
2. In the same state as above, closing the panel (clicking outside) then clicking another row caused the subpanel to re-open, this isn't ideal (should open to root drawer)
3. fix issue with drawers where you can scroll, then open a nested drawer, the nested drawer would appear incorrectly

Fixes HDX-3171
@changeset-bot
Copy link

changeset-bot bot commented Jan 10, 2026

🦋 Changeset detected

Latest commit: 4fadb07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hyperdx/app Patch
@hyperdx/api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jan 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
hyperdx-v2-oss-app Ready Ready Preview, Comment Jan 12, 2026 6:09pm

<Drawer
opened={rowId != null}
withCloseButton={false}
withinPortal={!isNestedPanel}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Originally added in #1290 when we didn't sue mantine drawer, not needed anymore.

opened={rowId != null}
withCloseButton={false}
withinPortal={!isNestedPanel}
withOverlay={!isNestedPanel}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This helps prevent some issues flagged originally in #1393, ensuring clicking outside closes all modals and that there isn't multiple stacking overlays (causing outside to get darker each sub-modal)

@claude
Copy link

claude bot commented Jan 10, 2026

Code Review

No critical issues found.

The changes look good overall. The PR addresses nested drawer scrollbar issues and state management correctly:

  1. State management fix - useNestedPanelState() called without parameter correctly defaults to URL-based state for root panels
  2. Overlay fix - withOverlay={!isNestedPanel} correctly shows backdrop only on root panels
  3. Cleanup logic - Properly clears nested panel state when closing root drawer

Minor consideration:
The change from withinPortal to withOverlay on DBRowSidePanel.tsx:562 - these are different Mantine props. Verify the drawer still renders correctly (especially z-index and positioning with nested modals/dropdowns). If portal rendering is needed, you may need to keep withinPortal alongside withOverlay.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 10, 2026

E2E Test Results

52 tests failed • 9 passed • 3 skipped • 1717s

Status Count
✅ Passed 9
❌ Failed 52
⚠️ Flaky 0
⏭️ Skipped 3

Tests ran across 4 shards in parallel.

View full report →

@brandon-pereira brandon-pereira requested review from a team, bot-hyperdx and dhable and removed request for a team and bot-hyperdx January 12, 2026 16:03
@kodiakhq kodiakhq bot merged commit ddc7dd0 into main Jan 12, 2026
8 of 12 checks passed
@kodiakhq kodiakhq bot deleted the brandon/drawer-bugfixes branch January 12, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants